package com.wgchao.identityrightsmanagement.query.vo;

import com.wgchao.identityrightsmanagement.infrastructure.jpa.entity.SysResourceFunction;
import com.wgchao.identityrightsmanagement.infrastructure.mapstruct.FunctionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @ClassName: FunctionVoConvert
 * @author: wgchao
 * @createTime: 2020/6/28 10:51 AM
 * @Description: TODO
 */
@Component
public class FunctionVoConvert {
    @Autowired
    private FunctionMapper functionMapper;

    public FunctionVo convert(SysResourceFunction sysResourceFunction){
        FunctionVo functionVo = functionMapper.toT(sysResourceFunction);
        return functionVo;
    }
}
